<!DOCTYPE html>
<html lang="zh-Hant">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>{% block title %}日创科技{% endblock %}</title>
    <!-- Bootstrap CSS -->
    <link href="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.0/css/bootstrap.min.css" rel="stylesheet">
    <!-- Swiper CSS -->
    <link href="https://cdn.bootcdn.net/ajax/libs/Swiper/8.4.5/swiper-bundle.min.css" rel="stylesheet">
    <!-- Font Awesome -->
    <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet">
    <!-- Custom CSS -->
    <style>
        .navbar-brand {
            font-weight: bold;
            font-size: 1.5rem;
        }
        .hero-section {
            background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/static/images/hero-bg.jpg');
            background-size: cover;
            background-position: center;
            color: white;
            padding: 100px 0;
        }
        .swiper {
            width: 100%;
            height: 500px;
            margin-top: -76px;
        }
        .swiper-slide {
            text-align: center;
            background: #f8f9fa;
        }
        .swiper-slide img {
            max-width: 100%;
            height: 100%;
            object-fit: cover;
        }
        .footer {
            background: #343a40;
            color: white;
            padding: 40px 0;
            margin-top: 50px;
        }
        .section-padding {
            padding: 60px 0;
        }
        .card {
            transition: transform 0.3s;
            margin-bottom: 20px;
        }
        .card:hover {
            transform: translateY(-5px);
        }
        .point {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 5px;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }
        .point h5 {
            color: #007bff;
            margin-bottom: 10px;
        }
        .service-points {
            max-width: 800px;
            margin: 0 auto;
        }
        .service-point-card {
            background: white;
            border-radius: 10px;
            padding: 25px;
            height: 100%;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            position: relative;
            overflow: hidden;
        }
        .service-point-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
        }
        .service-point-card .point-number {
            position: absolute;
            top: 15px;
            right: 15px;
            font-size: 24px;
            font-weight: bold;
            color: rgba(0, 123, 255, 0.1);
            line-height: 1;
        }
        .service-point-card h5 {
            color: #007bff;
            margin-bottom: 15px;
            font-size: 1.1rem;
            position: relative;
            z-index: 1;
        }
        .service-point-card p {
            margin: 0;
            color: #666;
            font-size: 0.95rem;
            line-height: 1.6;
            position: relative;
            z-index: 1;
        }
        @media (max-width: 768px) {
            .service-point-card {
                padding: 20px;
            }
            .service-point-card .point-number {
                font-size: 20px;
            }
        }
        body {
            padding-top: 76px;
        }
        .page-header {
            padding-top: 40px;
            padding-bottom: 40px;
        }
    </style>
</head>
<body>
    <!-- 导航栏 -->
    <nav class="navbar navbar-expand-lg navbar-light bg-white fixed-top shadow-sm">
        <div class="container">
            <a class="navbar-brand" href="{{ url_for('front.index') }}">
                {{ '日創科技' | t }}
            </a>
            <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbarNav">
                <span class="navbar-toggler-icon"></span>
            </button>
            <div class="collapse navbar-collapse" id="navbarNav">
                <ul class="navbar-nav ms-auto">
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('front.index') }}">{{ '首頁' | t }}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('front.about') }}">{{ '關於我們' | t }}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('front.services') }}">{{ '業務範圍' | t }}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('front.cases') }}">{{ '成功案例' | t }}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('front.news') }}">{{ '資訊' | t }}</a>
                    </li>
                    <li class="nav-item">
                        <a class="nav-link" href="{{ url_for('front.contact') }}">{{ '聯繫我們' | t }}</a>
                    </li>
                    <li class="nav-item dropdown">
                        <a class="nav-link dropdown-toggle" href="#" id="langDropdown" role="button" 
                           data-bs-toggle="dropdown">
                            {{ '語言' | t }}
                        </a>
                        <ul class="dropdown-menu">
                            <li><a class="dropdown-item" href="{{ url_for(request.endpoint, lang='zh', **request.view_args) }}">繁體中文</a></li>
                            <li><a class="dropdown-item" href="{{ url_for(request.endpoint, lang='en', **request.view_args) }}">English</a></li>
                        </ul>
                    </li>
                </ul>
            </div>
        </div>
    </nav>

    <!-- 在主内容区域前添加 -->
    {% with messages = get_flashed_messages(with_categories=true) %}
        {% if messages %}
            <div class="container mt-3">
                {% for category, message in messages %}
                    <div class="alert alert-{{ category }} alert-dismissible fade show" role="alert">
                        {{ message }}
                        <button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
                    </div>
                {% endfor %}
            </div>
        {% endif %}
    {% endwith %}

    <!-- 主要内容 -->
    {% block content %}{% endblock %}

    <!-- 页脚 -->
    <footer class="footer">
        <div class="container">
            <div class="row">
                <div class="col-md-4">
                    <h5>{{ '联系我们' | t }}</h5>
                    <p>{{ '地址：FLAT/RM 1411 14/F EASTERN HARBOUR CENTRE28 HOI CHAK STREET QUARRY BAY，HK' | t }}</p>
                    <p>{{ '电话：+852-97046393' | t }}</p>
                    <p>{{ '邮箱：imiracle2024@hotmail.com' }}</p>
                </div>
                <div class="col-md-4">
                    <h5>{{ '快速链接' | t }}</h5>
                    <ul class="list-unstyled">
                        <li><a href="/about" class="text-white">{{ '关于我们' | t }}</a></li>
                        <li><a href="/services" class="text-white">{{ '业务范围' | t }}</a></li>
                        <li><a href="/cases" class="text-white">{{ '成功案例' | t }}</a></li>
                    </ul>
                </div>
                <div class="col-md-4">
                    <h5>{{ '关注我们' | t }}</h5>
                    <div class="social-links">
                        <a href="#" class="text-white me-2">LinkedIn</a>
                        <a href="#" class="text-white me-2">Facebook</a>
                        <a href="#" class="text-white">WeChat</a>
                    </div>
                </div>
            </div>
        </div>
    </footer>

    <!-- Bootstrap Bundle JS -->
    <script src="https://cdn.bootcdn.net/ajax/libs/twitter-bootstrap/5.3.0/js/bootstrap.bundle.min.js"></script>
    <!-- Swiper JS -->
    <script src="https://cdn.bootcdn.net/ajax/libs/Swiper/8.4.5/swiper-bundle.min.js"></script>
    {% block scripts %}{% endblock %}
</body>
</html> 